package com.foreveross.crawl.common.exception;

public class TaskStateException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2956105176820441373L;

	public TaskStateException(String msg){
		super(msg);
	}
	
	public TaskStateException(String msg, Throwable cause){
		super(msg, cause);
	}
	
	public TaskStateException(Long channel, String taskId){
		super(String.format("渠道 [%s] 下,编号为 [%s] 的任务状态更新错误",
				channel, taskId));
	}
}
